﻿using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace RDIFramework.BizLogic
{
    /// <summary>
    /// 条码规则表
    /// </summary>
    public class ZDY_BOM_DAORU
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int? Id { get; set; }

        /// <summary>
        /// ParentCode
        /// </summary>
        [StringLength(50, ErrorMessage = "ParentCode不能超过50个字符")]
        [Display(Name = "ParentCode")]
        [DataType(DataType.Text)]
        [DataMember]
        public String ParentCode { get; set; }

        /// <summary>
        /// taskcode
        /// </summary>
        [StringLength(50, ErrorMessage = "Taskcode不能超过50个字符")]
        [Display(Name = "Taskcode")]
        [DataType(DataType.Text)]
        [DataMember]
        public String Taskcode { get; set; }

        /// <summary>
        /// VersionDesc
        /// </summary>
        [StringLength(200, ErrorMessage = "VersionDesc不能超过200个字符")]
        [Display(Name = "VersionDesc")]
        [DataType(DataType.Text)]
        [DataMember]
        public String VersionDesc { get; set; }

        /// <summary>
        /// VersionEffDate
        /// </summary>
        [Display(Name = "VersionEffDate")]
        [DataMember]
        public DateTime? VersionEffDate { get; set; }

        /// <summary>
        /// CreateDate
        /// </summary>
        [Display(Name = "CreateDate")]
        [DataMember]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// CreateUser
        /// </summary>
        [StringLength(50, ErrorMessage = "CreateUser不能超过50个字符")]
        [Display(Name = "CreateUser")]
        [DataType(DataType.Text)]
        [DataMember]
        public String CreateUser { get; set; }

        /// <summary>
        /// RelsUser
        /// </summary>
        [StringLength(50, ErrorMessage = "RelsUser不能超过50个字符")]
        [Display(Name = "RelsUser")]
        [DataType(DataType.Text)]
        [DataMember]
        public String RelsUser { get; set; }

        /// <summary>
        /// RelsDate
        /// </summary>
        [Display(Name = "RelsDate")]
        [DataMember]
        public DateTime? RelsDate { get; set; }

        /// <summary>
        /// ChildCode
        /// </summary>
        [StringLength(50, ErrorMessage = "ChildCode不能超过50个字符")]
        [Display(Name = "ChildCode")]
        [DataType(DataType.Text)]
        [DataMember]
        public String ChildCode { get; set; }

        /// <summary>
        /// SortSeq
        /// </summary>
        [StringLength(4, ErrorMessage = "SortSeq不能超过4个字符")]
        [Display(Name = "SortSeq")]
        [DataType(DataType.Text)]
        [DataMember]
        public String SortSeq { get; set; }

        /// <summary>
        /// BaseQtyN
        /// </summary>
        [Display(Name = "BaseQtyN")]
        [DataMember]
        public Decimal? BaseQtyN { get; set; }

        /// <summary>
        /// Define10
        /// </summary>
        [StringLength(50, ErrorMessage = "Define10不能超过50个字符")]
        [Display(Name = "Define10")]
        [DataType(DataType.Text)]
        [DataMember]
        public String Define10 { get; set; }

        /// <summary>
        /// Bomtype
        /// </summary>
        [StringLength(20, ErrorMessage = "Bomtype不能超过20个字符")]
        [Display(Name = "Bomtype")]
        [DataType(DataType.Text)]
        [DataMember]
        public String Bomtype { get; set; }

        /// <summary>
        /// bs
        /// </summary>
        [Display(Name = "Bs")]
        [DataMember]
        public Boolean Bs { get; set; }

        /// <summary>
        /// U8_bomid
        /// </summary>
        [Display(Name = "U8Bomid")]
        [DataMember]
        public int? U8Bomid { get; set; }

        /// <summary>
        /// U8_Opcomponentid
        /// </summary>
        [Display(Name = "U8Opcomponentid")]
        [DataMember]
        public int? U8Opcomponentid { get; set; }

        /// <summary>
        /// U8_parentid
        /// </summary>
        [Display(Name = "U8Parentid")]
        [DataMember]
        public int? U8Parentid { get; set; }

        /// <summary>
        /// U8_componentid
        /// </summary>
        [Display(Name = "U8Componentid")]
        [DataMember]
        public int? U8Componentid { get; set; }

        /// <summary>
        /// U8_ParentCode
        /// </summary>
        [StringLength(50, ErrorMessage = "U8Parentcode不能超过50个字符")]
        [Display(Name = "U8Parentcode")]
        [DataType(DataType.Text)]
        [DataMember]
        public String U8Parentcode { get; set; }

        /// <summary>
        /// U8_Optionsid
        /// </summary>
        [Display(Name = "U8Optionsid")]
        [DataMember]
        public int? U8Optionsid { get; set; }
    }
}